//
//  NetWebWorking.swift
//  WEIBO
//
//  Created by 李龙 on 15/6/25.
//  Copyright © 2015年 itheima. All rights reserved.
//

import UIKit
import AFNetworking
class NetWebWorking: AFHTTPSessionManager {

    private static let intance : NetWebWorking =
    {
        let urlstr = "https://api.weibo.com/"
        let baseUrl = NSURL(string: urlstr)
        let tools = NetWebWorking(baseURL: baseUrl)
        tools.responseSerializer.acceptableContentTypes=NSSet(objects:"application/json", "text/json", "text/javascript", "text/plain") as! Set<String>
        return tools
    }()
    class func sharedNetWorkingTools() -> NetWebWorking
    {
        return intance
    }
}
